# -*- coding: utf-8 -*-
from db.mysql import MysqlClient
from common.helper import Helper
class Arrangement(object):
    def __init__(self):
        self.mysql = MysqlClient()
        self.name = "安盈太平长期返还型意外险"
    def pullData(self, data={}):
        for item in Helper.selectData(self.name, self.mysql):
            data["name"] = self.name
            data["company"] = "中国太平"
            data["people_count"] = "1"
            data["year"] = item["year"]
            data["gender"] = item["gender"]
            data["money"] = item["money"]
            data["days"] = item["days"]
            data["payType"] = item["payType"]
            data["interval"] = item["interval"]
            data["price"] = item["price"]
            Helper.mergeTable( self.name,self.mysql,data )
